package fun.chutianshu;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Pet p0= new Cat("Tom",5);
        Pet p1= new Dog("大壮",8);

        Pet pArray[]=new Pet[2];
        pArray[0]=p0;
        pArray[1]=p1;

        for(int i=0;i< pArray.length;i++)
        {
            pArray[i].Play();
        }
    }
}
